// 列配置
export let columns = [
  {
    title: "序号",
    type: "index",
    width: "70",
    align: "center"
  },
  {
    title: "ID",
    key: "id",
    width: "70",
    align: "center"
  },
  {
    title: "字典名称",
    key: "name"
  },
  {
    title: "字典类型",
    key: "type"
  },
  {
    title: "字典码",
    key: "code"
  },
  {
    title: "字典值",
    key: "value"
  },
  {
    title: "备注",
    key: "remark"
  },
  {
    title: "操作",
    slot: "operation"
  },
];

// 分页配置
export let pageConfig = {
  pageSize: 20,
  pageNow: 1,
  total: 0,
  loading: false,
};

// 表单数据
export let formValidate = {
  name: '',
  type: '',
  code: '',
  value: '',
  remark: '',
  id: null,
};

// 表单验证规则
export let ruleValidate = {
  name: [{required: true, message: "字典名称不能为空", trigger: "blur"}],
  type: [{required: true, message: "字典类型不能为空", trigger: "blur"}],
  code: [{required: true, message: "字典码不能为空", trigger: "blur"}],
  value: [{required: true, message: "字典值不能为空", trigger: "blur"}],
};